/**
 * 管理初始化
 */

Grid.controllerName = "/admin/post";
Grid.title = "职务";
Grid.PrimaryKey = "pId";
//Grid.id = "holidayTable";


/**
 * 初始化表格的列
 */
Grid.initColumn = function () {
    var columns = [
        {field: 'selectItem', radio: true},
        {title: 'id', field: 'pId', visible: false, align: 'center', valign: 'middle'},
        {title: '职务名称', field: 'pName', align: 'center', valign: 'middle', sortable: true}
    ];
    return columns;
};



$(function () {
    var defaultColunms = Grid.initColumn();
    var table = new BSTable(Grid.id, Grid.controllerName+"/list", defaultColunms);
    table.setPaginationType("server");
    Grid.table = table.init();
    Common.initLaydate();
});